package com.dianping.cat.home.dal.report;

import java.util.Arrays;
import java.util.Date;
import org.unidal.dal.jdbc.DataObject;












public class TopologyGraph
  extends DataObject
{
  private int m_id;
  private String m_ip;
  private Date m_period;
  private int m_type;
  private byte[] m_content;
  private Date m_creationDate;
  private int m_keyId;
  
  public void afterLoad() {
/*  30 */     this.m_keyId = this.m_id;
    clearUsage();
  }

  
/*  35 */   public byte[] getContent() { return this.m_content; }



/*  39 */   public Date getCreationDate() { return this.m_creationDate; }



/*  43 */   public int getId() { return this.m_id; }



/*  47 */   public String getIp() { return this.m_ip; }



/*  51 */   public int getKeyId() { return this.m_keyId; }



/*  55 */   public Date getPeriod() { return this.m_period; }



/*  59 */   public int getType() { return this.m_type; }

  
  public TopologyGraph setContent(byte[] content) {
/*  63 */     setFieldUsed(TopologyGraphEntity.CONTENT, true);
/*  64 */     this.m_content = content;
/*  65 */     return this;
  }
  
  public TopologyGraph setCreationDate(Date creationDate) {
/*  69 */     setFieldUsed(TopologyGraphEntity.CREATION_DATE, true);
/*  70 */     this.m_creationDate = creationDate;
/*  71 */     return this;
  }
  
  public TopologyGraph setId(int id) {
/*  75 */     setFieldUsed(TopologyGraphEntity.ID, true);
/*  76 */     this.m_id = id;

    setFieldUsed(TopologyGraphEntity.KEY_ID, true);
/*  79 */     this.m_keyId = id;
/*  80 */     return this;
  }
  
  public TopologyGraph setIp(String ip) {
/*  84 */     setFieldUsed(TopologyGraphEntity.IP, true);
/*  85 */     this.m_ip = ip;
/*  86 */     return this;
  }
  
  public TopologyGraph setKeyId(int keyId) {
/*  90 */     setFieldUsed(TopologyGraphEntity.KEY_ID, true);
/*  91 */     this.m_keyId = keyId;
/*  92 */     return this;
  }
  
  public TopologyGraph setPeriod(Date period) {
/*  96 */     setFieldUsed(TopologyGraphEntity.PERIOD, true);
/*  97 */     this.m_period = period;
/*  98 */     return this;
  }
  
  public TopologyGraph setType(int type) {
/* 102 */     setFieldUsed(TopologyGraphEntity.TYPE, true);
/* 103 */     this.m_type = type;
/* 104 */     return this;
  }

  
  public String toString() {
/* 109 */     StringBuilder sb = new StringBuilder(1024);

/* 111 */     sb.append("TopologyGraph[");
/* 112 */     sb.append("content: ").append((this.m_content == null) ? null : Arrays.asList(new byte[][] { this.m_content }));
/* 113 */     sb.append(", creation-date: ").append(this.m_creationDate);
/* 114 */     sb.append(", id: ").append(this.m_id);
/* 115 */     sb.append(", ip: ").append(this.m_ip);
/* 116 */     sb.append(", key-id: ").append(this.m_keyId);
/* 117 */     sb.append(", period: ").append(this.m_period);
/* 118 */     sb.append(", type: ").append(this.m_type);
/* 119 */     sb.append("]");
/* 120 */     return sb.toString();
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/dal/report/TopologyGraph.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */